import './assets/main.css'
import './assets/theme.css'

import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import { ElMessage, ElNotification, ElMessageBox } from 'element-plus'
import 'element-plus/dist/index.css'
import MyElement from './components/element'
import { createPinia } from 'pinia'

// 禁用Vue Devtools
const app = createApp(App)
app.config.devtools = false

const pinia = createPinia()

// 配置Element Plus全局方法
app.config.globalProperties.$message = ElMessage
app.config.globalProperties.$notify = ElNotification
app.config.globalProperties.$confirm = ElMessageBox.confirm
app.config.globalProperties.$alert = ElMessageBox.alert
app.config.globalProperties.$prompt = ElMessageBox.prompt

app.use(pinia)
app.use(router)
app.use(ElementPlus)
app.use(MyElement)
app.mount('#app')
